package org.yaglyf.service.eureka;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient  //服务提供方
public class Application {

	public static void main(String[] args) {
        //两种启动方式都可以
        SpringApplication.run(Application.class,args);
//		new SpringApplicationBuilder(Application.class).web(true).run(args);
	}

}
